import json
import os
JsonPath = '../data/lumbar_train51/lumbar_train51_annotation.json'
resultpath = '../data/result.json'
show_test_path = '../data/show/test_image'
with open(JsonPath) as jsonfile:
    jsonfile = json.load(jsonfile)
    print(jsonfile[0]['studyUid'])
    print(jsonfile[0]['version'])
    print(jsonfile[0]['data'])

with open(resultpath) as jsonfile:
    jsonfile = json.load(jsonfile)
    print(len(jsonfile))
    print(jsonfile[0]['studyUid'])
    print(jsonfile[0]['version'])
    print(jsonfile[0]['data'])
